let webpack = require('webpack');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')

module.exports = {
	entry:'./main.js',
	output:{
		path:__dirname+'/dist',
		filename:'bundle.js'
	},
	plugins:[
		new UglifyJsPlugin( {test: /\.js($|\?)/i})
	],
	devServer:{
		port:8080
	}
}